// Author: wsfuyibing <682805@qq.com>
// Date: 2025-05-01

package login

type Request struct {
	Page int `url:"page"`
	Size int `url:"size"`
}

func (o *Request) BeforeValidate() (err error) {
	if o.Page < 1 {
		o.Page = 1
	}

	if o.Size < 1 {
		o.Size = 10
	}
	return
}
